package org.dromara.system.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.system.domain.SysUserSocial;

/**
 * 社交关联业务对象 sys_user_social
 *
 * @author Denny
 * @date 2025-10-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysUserSocial.class, reverseConvertGenerate = false)
public class SysUserSocialBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 社交平台的类型
     */
    @NotNull(message = "社交平台的类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer type;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * openid
     */
    private String openId;

    /**
     * unionid
     */
    private String unionId;
}
